package cn.isever;
import java.util.List;

import cn.lei.PageBean;
import cn.lei.Student;


public interface IStudentService {
	/**
	 * 
	 * @param student
	 * @return 插入成功返回true，失败返回false
	 */
	public abstract boolean insert(Student student);
	/**
	 * 返回所有学生的集合
	 * @return
	 */
	public abstract List<Student> list();
	/**
	 * 根据id删除
	 * @param id
	 * @return 删除成功返回true 失败返回false
	 */
	public abstract boolean deleteById(Integer id);
	public abstract Student findById(Integer id);
	public abstract boolean update(Student student);
	public abstract List<Student> findByName(String name);
	/**
	 * 通过pageNo和pageSize封装成pageBean对象
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public abstract PageBean getpageBean(int pageNo, int pageSize);
	public abstract boolean deleteAll(String[] selectIds);
}
